package com.test.practice.java8.annotation;

@Hint("int1")
@Hint("int2")
public class Annotation {
    public static void main(String[] args) {
        Hint hint = Annotation.class.getAnnotation(Hint.class);
        System.out.println(hint);
        Hints hints1 = Annotation.class.getAnnotation(Hints.class);
        System.out.println(hints1.value().length);
        Hint[] hints2 = Annotation.class.getAnnotationsByType(Hint.class);
        for (Hint hint1 : hints2) {
            System.out.println(hint1.value());
        }
        System.out.println(hints2.length);
    }
}
